<core:SET width='200'>
<core:SET users="users">
<core:SET photo_no="1">
<core:SET title="Subscriptions list for user {$firstname} {$lastname} ">
<core:WRAP file="/adm/adm.layout.html" placeholder="Content">

<core:include file="/adm/inc/inc.adm.tabs.html">

<h1 align="center">  </h1>


<core:optional for="msg">
	<span class="message" runat="server"> {$msg} </span>
</core:optional>
	<hr>
  <table width="100%" border="0" align="center" cellspacing="1" cellpadding="2">
    <colgroup>
        <col id="ID">
        <col id="type">
        <col id="start_date">
        <col id="next_rebill_date">
        <col id="status">
        <col id="reason">
        <col id="number_payments">
        <col id="action">
    </colgroup>
    <tr align="left">
    	<td colspan="4" class="whiteheader">
    		Subscriptions for user:
            	<core:default for="user_id"> &lt; None &gt;
            	</core:default>
            	<core:optional for="user_id"> {$login} ({$user_id}) &nbsp;
            	</core:optional>
    	</td>

<!--<core:default for="user_id"> -->
<list:LIST id='List'>
        <td colspan="4" class="whiteheader_right" align="right">
            <page:navigator id="pagenav" items="10">
				Page: {$PageNumber} of {$TotalPages}
    			<page:first>First</page:first>
    			<page:prev>Prev</page:prev>
    			<page:list>
        			<page:number>
        			<page:elipses>...</page:elipses>
        			<page:separator> </page:separator>
    			</page:list>
    			<page:next>Next</page:next> <page:last>Last</page:last>
			</page:navigator>
    	</td>
     </tr>

    <tr class="header">
        <th>ID</th>
        <th>Type</th>
        <th>Start Date</th>
        <th>Next Rebill Date</th>
        <th>Status</th>
        <th>Reason</th>
        <th>#Payments </th>
        <th>&nbsp; </th>
    </tr>
    <list:ITEM>
      <tr class="{$Parity}">
        <td>{$paypal_subscription_id}</td>
        <td>{$type_show}</td>
        <td>{$start_date}</td>
        <td>{$next_rebill_date}</td>
        <td>{$status_show}</td>
        <td>{$reason}</td>
        <td>{$number_payments}</td>

        <td class="left">
        	<html:link url="/subscription_payments" param="id">Payments history</html:link>
        </td>
      </tr>
    </list:ITEM>
    <tr> <td colspan="8" class="whiteheader"> &nbsp; </td> </tr>
  </table>
</list:LIST>
<!--</core:default>   -->

<html:link url="/edit" param="user_id">Back to subscriber users</html:link>

<hr>
